package kr.hkit.powerjava.chapter24.work;

import java.util.Scanner;

import org.omg.CORBA.ServiceDetail;

public class ERP {
	public static void main(String[] args) {
		
		Scanner sc =new Scanner(System.in);
		boolean flag =true;
		while(flag){
			System.out.println("1.학생정보 2. 부서정보 3.종료");
			switch (sc.nextInt()){
				case 1:
					new ServiceStudent(new StudentDao(), sc);
					break;
				case 2: new ServiceDepartment(new Department(),sc);
					break;
				default:
				 flag = false;		
			}
		}
		sc.close();
	}
}
